//
// Created by v on 2019/10/24 上午10:27.
// Copyright (c) 2019 jmdvirus All rights reserved.
//
//     ******          *             *--*
//       ||            *             |
//       ||  *--*--*---*  * *-********--*
//    * //   *  *  *   *\ / ||  |  |    |
//     **    *  *  *---* *  *   *--* *--*
//

#include "CMShowQt.h"
#include "CMShowQtBase.h"
#include "CMShowQtParabola.h"

CMShowQt::CMShowQt(int argc, char **args)
{
    m_qt = new QApplication(argc, args);
}

int CMShowQt::run()
{
    QWidget *w = new QWidget;
    w->setGeometry(0, 0, 800, 600);
    //    CMShowQtBase qtBase(w);
    //    qtBase.showLabel();
    CMShowQtParabola p(w);
    p.showParabola(400, 300, 200);

    w->show();

    m_qt->exec();
    return 0;
}
